On a New Method of Storing a Variable Size Array
نویسنده
چکیده
There are several known ways of storing stack data structure – as a linked list (called list from now on in this paper), an array which size is dynamically increased on demand (called vector), or a doubleended queue (called deque). C++ Standard [1] suggests a deque as a standard container to use as a back-end for a stack's internal storage. C++ deque implementations should rely on memory paging for a better use of processor's caching mechanism [2] (though on practice this advice is not always followed). This paper introduces a new data structure, log_vector, with the following properties: • constant time random access to individual elements; • constant time element addition to the end; • constant time element removal from the end; • constant time empty data structure creation; • amortized constant space per individual elements; • constant additional space used; In theory it outperforms vector in the element addition and removal, behaves similarly to deque on all comparison parameters listed here, and has better random access time than list. It will be shown that on practice it behaves better than list, deque and vector when used as a stack with indexed access to its elements.
منابع مشابه
Dexterous Workspace Shape and Size Optimization of Tricept Parallel Manipulator
This work intends to deal with the optimal kinematic synthesis problem of Tricept parallel manipulator. Observing that cuboid workspaces are desirable for most machines, we use the concept of effective inscribed cuboid workspace, which reflects requirements on the workspace shape, volume and quality, simultaneously. The effectiveness of a workspace is characterized by the dexterity of the manip...
متن کاملDevelopment a New Technique Based on Least Square Method to Synthesize the Pattern of Equally Space Linear Arrays
Using the sampled data of a desired pattern is a common technique in pattern synthesizing of array factor (AF) of antenna arrays. Based on the obtained data matrix, Least Square Method (LSM) is used to calculate the exciting coefficient of array elements. The most important parameter, which involves the accuracy and complexity of calculation, is the sampling rate of the desired pattern. Classic...
متن کاملA New Design of Log-Periodic Dipole Array (LPDA) Antenna
This paper presents a new approach for design of the log-periodic dipole array antenna (LPDA) based on using of different design parameters in the LPDA elements to control the antenna behavior. In the proposed procedure, the design parameters can control the value of forward gain over the operating frequency range, and also adjust the gain flatness. Furthermore, this design procedure can decrea...
متن کاملA New Compact Ultra-wideband Linear Antenna Array for Target Detection Applications
This paper presents a low-cost compact planar microstrip-fed monopole antenna and its four-element array design for ultra-wideband (UWB) wireless communication and target detection applications, respectively, operating in the frequency span of 3 GHz to 11 GHz. A prototype was fabricated and then measured based on optimal parameters. The results of reflection coefficient (S11) and radiation patt...
متن کاملNormalization of qPCR array data: a novel method based on procrustes superimposition
MicroRNAs (miRNAs) are short, endogenous non-coding RNAs that function as guide molecules to regulate transcription of their target messenger RNAs. Several methods including low-density qPCR arrays are being increasingly used to profile the expression of these molecules in a variety of different biological conditions. Reliable analysis of expression profiles demands removal of technical variati...
متن کاملذخیره در منابع من
با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید
عنوان ژورنال:
- CoRR
دوره abs/1203.4836 شماره
صفحات -
تاریخ انتشار 2012